#include <light.h>

light_t *
light_new( void ){
  return calloc( 1, sizeof( light_t ) );
}

void
light_free( light_t *light ){
  assert( light != NULL );
  free( light );
}

char *
light_str( light_t *light ){
  char *s = NULL;

  asprintf( &s, "light : center at [ %f, %f, %f ]",
	    VECTOR3_X( light->center ),
	    VECTOR3_Y( light->center ),
	    VECTOR3_Z( light->center )
	    );

  return s;
}
